package com.example.Dietproject.themenu.service;

import com.example.Dietproject.themenu.dao.ThemenuMapper;
import com.example.Dietproject.themenu.entity.DietThemenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ThemenServlceImpl implements ThemenuServlce {

    @Autowired
    private ThemenuMapper themenuMapper;

    @Override
    public List<DietThemenu> getAll() {
        return themenuMapper.getAll();
    }

    @Override
    public int deleteDietThemenuById(int tid) {
        return themenuMapper.deleteDietThemenuById(tid);
    }

    @Override
    public int update(DietThemenu them) {
        return themenuMapper.update(them);
    }

    @Override
    public DietThemenu findDietThemenuByIds(int tid) {
        return themenuMapper.findDietThemenuByIds(tid);
    }
}
